package com.bwie.service;

import com.bwie.service.impl.IProductServiceImpl;
import com.bwie.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2024/10/18 10:28
 */

@Service
@FeignClient(value = "server-2205a-product", fallback = IProductServiceImpl.class)
public interface IProductService {

    @GetMapping(value = "/prod/prod/checkStock/{prodId}/{prodCount}")
    public R checkStock(@PathVariable("prodId") Integer prodId, @PathVariable("prodCount") Integer prodCount);

}
